<div class="modal-header">
    <button aria-hidden="true" data-dismiss="modal" class="close" type="button"></button>
    <h3>选择景区</h3>
</div>
<div class="modal-body">
    <div class="well">
        <form class="form-horizontal ajaxScenerySearch">
            <span>景区名称 <input type="text" name="scenery_search" value="<?php echo $this->input->get('scenery_search');?>" placeholder="请输入景区编号或景区名称" class="m-wrap small"></span>
            <span>供应商帐号或别名 <input type="text" name="username" value="<?php echo $this->input->get('username');?>" placeholder="请输入供应商帐号或别名" class="m-wrap small"></span>
            <button class="btn green"><i class="icon-search"></i> 搜索</button>
        </form>
    </div>
    <?php if ($page_list->num_rows() > 0) :?>
        <table class="table table-striped table-bordered table-hover">
            <thead class="flip-content">
                <tr>
                    <th width="30">选择</th>
                    <th width="40">景区编号</th>
                    <th>景区名称</th>
                    <th>旅游主题</th>
                    <th>供应商</th>
                    <th>省/市/区</th>
                    <th>景区星级</th>
                    <th>上下架</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($page_list->result() as $item) : ?>
                <tr>
                    <td><input type="radio" name="sid" value="<?php echo $item->sid?>"></td>
                    <td><?php echo $item->sid;?></td>
                    <td width="140">
                        <p><?php echo $item->name_hanzi;?></p>
                        <p><?php echo $item->name_pinyin;?></p>
                    </td>
                    <td><?php echo $category[$item->category_id]['category_name']?></td>
                    <td width="110">
                        <p><?php echo $item->user_name;?></p>
                        <p><?php echo $item->alias_name ?></p>
                    </td>
                    <td>
                        <?php echo (!empty($item->provinceid) && $item->provinceid != '-1') ? $all_region[$item->provinceid]['region_name'] : $item->provinceid;?>
                        <?php echo (!empty($item->cityid) && $item->cityid != '-11') ? '/'.$all_region[$item->cityid]['region_name'] : $item->cityid;?>
                        <?php echo (!empty($item->areaid) && $item->areaid != '-22') ? '/'.$all_region[$item->areaid]['region_name'] : $item->areaid;?>
                    </td>
                    <td><?php echo $item->star_rank;?></td>
                    <td>
                        <a class="btn mini green" href="javascript:;" >
                            <?php echo $item->bit_state==1?'上架':'下架'; ?>
                        </a>
                    </td>
                </tr>
                <?php endforeach;?>
            </tbody>
        </table>
        <div class="dataTables_info">
            <span>当前第</span><span style="color: red"><?php echo $pg_now?></span>页 
            <span>共</span><span style="color: red"><?php echo $all_rows?></span>条数据
            <span>每页显示10条 </span>
            <?php echo $pg_list ?>
        </div>
    <?php else : ?>
        <div class="alert"><p>未找到数据。<p></div>
    <?php endif;?>
</div>
<div class="modal-footer"></div>